<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.kaishengit.entity.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>新建项目页面</title>
 	 <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
  </head>
  
  <body style="">
    
     <form action="addpro.jspx" class="container" style="width:550px" method="post">
			  <h1 style="color:blue">新建项目</h1>
			  <hr />
			  <div class="control-group">
					<label class="control-label" for="input01">项目名称</label>
					<div class="controls">
					  <input class="input-xlarge" id="input01" type="text" name="pname">
					</div>
			  </div>
			  
			  <div class="control-group">
					<label class="control-label" for="textarea">项目描述</label>
					<div class="controls">
					  <textarea class="input-xlarge" id="textarea" rows="3" name="pdescripe" style="width:500px"></textarea>
					</div>
			  </div>
			  
			   <div class="control-group">
					<label class="control-label" for="select01">项目负责人</label>
					<div class="controls">
					 	<input type="text" name="pheader"/>
					</div>
			  </div>
			  <div class="control-group" style="height:100px">
					<%List<Employee> elist=(List<Employee>)session.getAttribute("elist"); %>
					<div class="controls" style="float:left">
						<label class="control-label" for="multiSelect">公司成员列表</label>
						  <select multiple="multiple" id="multiSelect">
							<%for(Employee emp: elist){ %>
							<option><%=emp.getUsername() %></option>
							<%} %>
						  </select>
					</div>					
					
					<div class="controls" style="float:right">
						<label class="control-label" for="multiSelect">本项目组员列表</label>
						 <textarea name="pmember"></textarea>
					</div>
					<div class="clear" style="clear:both"></div>
			  </div>
			  <div class="form-actions" style="height:20px">
	            <button class="btn btn-primary" type="submit" style="margin-left:150px">保存</button>
	            <a href="tran.jspx?name=main"><button class="btn btn-primary" type="button" style="margin-left:200px">返回</button></a>
          	 </div>
	   </form>
    	
  </body>
</html>
